<template>
	<view class="mine">
		<index-header name="我的"></index-header>
		<view class="mine-login">
			<view class="user-info">
				<image src="/static/header/1.png"></image>
				<view class="user-name">
					马姐
				</view>
			</view>
			<view class="login-out">
				退出登陆
			</view>
		</view>
		
	
	
		<view class="my-menu">
			<view class="my-list" v-for="item in menuList" :key="item.id">
				<!-- 白条 -->
				<view v-if="item.name!=''" class="my-list-item">
					<view class="list-left">
						<image :src="'/static/mine/'+item.icon" ></image>
						<text class="name">{{item.name}}</text>
					</view>
					<view class="list-right"> > </view>
				</view>
				
				<!-- 占位符-->
				<view v-else class="list-gray" ></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				menuList:[
					{name:"我的积分",icon:"integral.png",id:1},
					{name:"我的订阅",icon:"subscribe.png",id:2},
					{name:"房贷计算器",icon:"calculator.png",id:3},
					{name:'',id:4},
					{name:"浏览记录",icon:"record.png",id:5},
					{name:"微聊客服",icon:"customerService.png",id:6},
					{name:'',id:7},
					{name:"我的问答",icon:"answer.png",id:8},
					{name:"设置",icon:"setting.png",id:9},
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
	// 背景颜色
	@backGround: #F4F3F8;
	@base:#2B3082;
	.mine{
		position: relative;
		background-color: @backGround;
		height: 800px;
		.mine-login{
			font-size: 16px;
			background-color: #585eaa;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 10rpx 20rpx;
			height: 100px;
			.user-info{
				display: flex;
				align-items: center;
				image{
					width:60px;
					height:60px;
					border-radius: 50%;
				}
				.user-name{
					padding-left:14px;
					font-size: 20px;
				}
			}
			.login-out{
				color:white;
				border:2px solid white;
				line-height:20px;
				font-size: 14px;
				padding:4px;
				border-radius: 10%;
			}
		}
		
		.my-info{
			width: 100%;
			position: absolute;
			top:170px;
			margin:0 40rpx;
			background-color: #2B3082;
		}
	
		.my-menu{
			margin-top: 30px;
			.my-list{
				.my-list-item{
					background-color: #fff;
					margin-top:30px;
					display: flex;
					justify-content: space-between;
					margin:0 30rpx;
					border-bottom:2px solid #F4F3F8;
					height: 50px;
					line-height: 50px;
			
				
					.list-left{
						display: flex;
						justify-content: center;
						align-items: center;
						image{
							width: 25px;
							height: 25px;
							line-height: 25px;
							padding-left:10px ;
						}
						display: flex;
						.name{
							padding-left:16px ;
						}
					}
					.list-right{
						color: #C0C0C0;
						padding-right:10px ;
					}
				}
				
				// 占位的灰色条
				.list-gray{
					height:10px;
				}
			}
		}
		
		
	}
	
</style>
